<?php
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
$this->headTitle($this->titulo);
echo $this->doctype();
?>  
<!DOCTYPE html>
<html lang="pt-br">
    <head>
        <?php echo $this->headMeta(); ?>
        <?php echo $this->headTitle(); ?>
        <link rel="shortcut icon" type="image/x-icon" href="<?php echo $this->urlbase;?>/favicon.ico">
        <meta name="description" content="<?php echo $this->description; ?>">
        <meta name="keywords" content="<?php echo $this->keywords; ?>">
        <link rel="canonical" href="<?php echo $_SERVER['HTTP_HOST']?>" />
        <meta http-equiv="Pragma" content="public">
        <?php echo $this->headLink() ?>
        <!--[if IE 7]>
        <link rel="stylesheet" type="text/css" href="<?php echo $this->urlbase;?>/public/media/css/ie7.css">
        <![endif]-->
        <script>
            URLBASE = '<?php echo $this->urlbase ?>';
            CONTROL = '<?php echo $this->controller; ?>';
        </script>
        <?php echo $this->headScript() ?>
    </head>
    <body>
        <div id="st-content" <?php if($this->controller == 'index' || $this->controller == '') { ?> class="fd-corpo" <?php } ?>>
            <header>
                <div id="st-topo">
                    <?php if($this->controller == 'blogdapiti') { ?> 
                    <?php echo $this->partial('topo_blog.phtml', array('urlbase' => $this->urlbase,'controller' => $this->controller,'this'=>$this,'titulo'=>$this->titulo)); ?>
                    
                    <?php } else { ?>
                    <?php echo $this->partial('topo.phtml', array('urlbase' => $this->urlbase,'controller' => $this->controller,'this'=>$this,'titulo'=>$this->titulo)); ?>
                    <?php } ?>
                </div>   
            </header>
            <section>
                <div id="st-corpo">
                    <div class="st-limite">
                        <?php echo $this->layout()->content; ?>
                    </div>
                </div>
            </section>
            <footer>
                <div id="st-rodape">
                    <?php echo $this->partial('rodape.phtml', array('urlbase' => $this->urlbase,'this'=>$this,'titulo'=>$this->titulo)); ?>                
                </div>
            </footer>    
        </div>
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-12750675-19', 'pitiredacao.com.br');
      ga('send', 'pageview');
    </script>
    <?php if($this->controller != 'index' && $this->controller != 'blogdapiti') { ?>
    <script>$(document).ready(function (){ setTimeout( function(){$('html, body').animate({ scrollTop: $("#st-corpo").offset().top }, 800); } , 500) ; });</script>
    <?php } ?>
    </body>
</html>